home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
ForCLI
/
baseconv.lha
/
baseconv.doc
< prev
Wrap
Text File
|
1993-09-10
|
2KB
|
46 lines
***********************************************************************
* *
* BASECONV v1.0 *
* *
* © 1993, Xavier Sirvent *
* *
***********************************************************************
COPYRIGHT
----------
The program "baseconv" is Freeware. You can copy and use baseconv
without any restrictions. You can use all or a part of the source in your
own programs. You must *NOT* sell it, but you are encouraged to spread it!
INTRODUCTION
------------
Each time I needed to convert a number from one base to another, I had
to use a pocket calculator, pen and a piece of paper, and I always
said to myself: "I should make a program to do this for me." But I am
a lazy man and so I never did it. One day, I decided to take the bull by
the horns, and this is the result.
Originally, it was only supposed to convert a number given in base
2, 8, 10 or 16, but in fact, it will convert to and from any base between
2 and 36. Only the character set used to represent a given number of a
given base limits the number of possible bases. To be sure that there are
no problems in displaying a number, I arbitrarily limit the program to
bases between 2 and 36. I don't know if it's of any use to go up to base 36,
but it doesn't make the code any longer, so why not?
HOW TO USE
----------
baseconv <base from> <base to> <number> [<number>...]
Where <base from> and <base to> must be numbers between 2 and 36,
and where <number> must be lower than 2^32
AUTHOR
------
Xavier SIRVENT
71 Cours Saint André
38800 - Le Pont de Claix
(33) 76-40-98-06